package com.easy.dev.utils;

import java.util.Collection;

public class CollectionUtils {

    public static boolean isEmpty(Collection collection) {
        return collection == null || collection.size() == 0;
    }

    public static String[] toArray(Object[] objs) {
        if (objs == null) {
            return null;
        }
        String[] strs = new String[objs.length];
        for (int i = 0; i < objs.length; i++) {
            strs[i] = objs[i].toString();
        }
        return strs;
    }
}
